<html>
<body>
    <div id="container"></div>


    <script>
        var eventSource = new EventSource("/vertx/streaming");
        eventSource.onmessage = function (event) {
            var container = document.getElementById("container");
            var paragraph = document.createElement("p");
            paragraph.innerHTML = event.data;
            container.appendChild(paragraph);
        };
    </script>
</body>
</html>